﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Interfaces.Enums;

namespace ServiceInfrastructure.Models.SecurityModels.Models
{
    [DataContract]
    public class Role 
    {
        [DataMember(Order = 1, Name = "RoleId")]
        public Guid Id { get; set; }

        [DataMember(Order = 2)]
        public RoleType Type { get; set; }

        [DataMember(Order = 3)]
        public ICollection<User> Users { get; set; }
    }
}
